<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
		<title>toolbar</title>
		<style>
			#page1 .ui-content{
				height: 1000px;
				background: aliceblue;
			}
		</style>
		<link rel="stylesheet" href="css/jquery.mobile-1.4.5.css" />
		<script type="text/javascript" src="js/jquery.js" ></script>
		<script type="text/javascript" src="js/jquery.mobile-1.4.5.js" ></script>
	</head>
	<body>
		<div data-role = "page" id="page1">
			<!--data-fullscreen="true" 半透明-->
			<div data-role = "header" data-fullscreen = "true" data-position = "fixed">
				<a href="#" class="ui-btn ui-icon-delete ui-btn-icon-left ui-btn-icon-notext ui-btn-corner-all"></a>
				<h1>header</h1>
				<a href="#page2" class="ui-btn ui-icon-delete ui-btn-icon-right ui-btn-icon-notext ui-btn-corner-all"></a>
			</div>
			<div data-role = "main" class="ui-content">
				content
			</div>
			<div data-role = "footer">
				<h1>footer</h1>
			</div>
		</div>
		<div data-role = "page" id="page2">
			<!--data-add-back-btn="true" 自动加上返回按钮-->
			<!--data-rel="back" 成为返回按钮-->
			<div data-role = "header" data-add-back-btn = "true" data-rel = "back">
				<h1>header</h1>
				<a class="ui-btn ui-btn-right ui-btn-inline ui-icon-delete ui-btn-icon-notext ui-btn-corner-all">btnRight</a>
				<div data-role = "navbar">
					<ul>
						<li><a href="#page1">page1</a></li>
						<li><a href="#" class="ui-btn-active">page1</a></li>
					</ul>
				</div>
			</div>
			<div data-role = "main" class="ui-content">
				content2
			</div>
			<div data-role = "footer">
				<h1>footer</h1>
			</div>
		</div>
		<script>
//			page初始化主要用于设置全局的配置选项
			$(document).on("pageinit",function () {
//				全局设置
//				返回按钮的文本
				$.mobile.toolbar.prototype.options.backBtnText = "back";
//				返回按钮的主题
				$.mobile.toolbar.prototype.options.backBtnTheme = "b";
			})
		</script>
	</body>
</html>
